package com.cci.kangdao.service;

import com.alibaba.fastjson.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * @description: 故障信息接口层
 * @author: shiliqiang
 * @company: CTY Technology Co.,Ltd
 * @since: 2021/7/22 10:15
 * @version: V1.0
 */
public interface FaultService {

    /**
     * @description: 根据条件查询照片
     * @param: map
     * @return:
     * @exception:
     * @author: shiliqiang
     * @company: CTY Technology Co.,Ltd
     * @since: 2021/7/22 10:24
     * @version: V1.0
     */
    List getPictureList(Map<String, Object> map);


    /**
     * @description: 检擦是否有必填照片未填
     * @param:
     * @return:
     * @exception:
     * @author: shiliqiang
     * @company: CTY Technology Co.,Ltd
     * @since: 2021/7/22 15:36
     * @version: V1.0
     */
    @Deprecated
    Integer isFinish(Map<String, Object> map);

    /**
     * @description: 检擦维修是否有必填照片未填
     * @param:
     * @return:
     * @exception:
     * @author: shiliqiang
     * @company: CTY Technology Co.,Ltd
     * @since: 2021/7/22 15:39
     * @version: V1.0
     */
    Map<String, Object> repairIsFinish(Map<String, Object> map);

    /**
     * @description: 删除某条故障信息
     * @param:
     * @return:
     * @exception:
     * @author: shiliqiang
     * @company: CTY Technology Co.,Ltd
     * @since: 2021/7/23 10:57
     * @version: V1.0
     */
    Integer deleteFaultPicture(String picNo, Long orderId, int flag);

     /**
      * @description: 更新故障信息
      * @param: 
      * @return: 
      * @exception:
      * @author: shiliqiang
      * @company: CTY Technology Co.,Ltd
      * @since: 2021/8/1 14:53
      * @version: V1.0
      */
    //Integer updateFault(String faultId, Long orderId, int flag);jsonObject
    Integer updateFault(Map<String, Object> map);

     /**
      * @description: 批量保存故障信息
      * @param:
      * @return:
      * @exception:
      * @author: shiliqiang
      * @company: CTY Technology Co.,Ltd
      * @since: 2021/7/23 16:09
      * @version: V1.0
      */
    Integer saveFaultInfo(List<JSONObject>  list, Long orderId);

     /**
      * @description: 查询故障信息
      * @param:
      * @return:
      * @exception:
      * @author: shiliqiang
      * @company: CTY Technology Co.,Ltd
      * @since: 2021/7/23 16:35
      * @version: V1.0
      */
    List<JSONObject> getFaultInfo(Long orderId);


}
